package com.huawei.appgallery.wishlist.ui.activity;

import android.os.Bundle;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.service.common.protocol.request.AppListFragmentRequest;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.BaseListFragment.c;
import com.huawei.appgallery.foundation.ui.framework.uikit.ContractFragment;
import com.huawei.appgallery.wishbase.ui.activity.WishBaseActivity;
import com.huawei.appgallery.wishlist.ui.fragment.WishDetailFragmentProtocol;
import com.huawei.appgallery.wishlist.ui.fragment.WishDetailFragmentProtocol.Request;
import java.util.HashMap;
import java.util.Map;
import o.cia;
import o.cjk;
import o.cjm;
import o.cjo;
import o.dce.a;
import o.dce.e;
import o.dce.i;
import o.dce.j;
import o.dch;
import o.FragmentTransaction;

public class WishDetailActivity extends WishBaseActivity<WishDetailActivityProtocol> implements c {
    private String ˊॱ;
    private String ˋॱ;
    private String ˏॱ;
    private WishDetailActivityProtocol ͺ;
    private Map<Integer, cia> ॱˊ = new HashMap();

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.ͺ = (WishDetailActivityProtocol) ʾ();
        if (this.ͺ != null && this.ͺ.ˎ() != null) {
            setContentView(i.ˊ);
            getWindow().getDecorView().setBackgroundColor(getResources().getColor(a.ˎ));
            this.ˊॱ = this.ͺ.ˎ().ॱ();
            this.ˋॱ = this.ͺ.ˎ().ˎ();
            this.ˏॱ = this.ͺ.ˎ().ˏ();
            ॱ(getResources().getString(j.ॱᐝ), e.ˏˎ);
            Object ab_ = ab_();
            if (ab_ instanceof Map) {
                this.ॱˊ = (Map) ab_;
            }
            dch.ˎ.ˋ("WishDetailActivity", "go WishDetail:" + this.ˏॱ + ",retain:" + (ab_ != null));
            ᐝ();
        }
    }

    public String ʿ() {
        return this.ˏॱ;
    }

    private void ᐝ() {
        cjo wishDetailFragmentProtocol = new WishDetailFragmentProtocol();
        AppListFragmentRequest request = new Request();
        request.ˋॱ(this.ˊॱ);
        request.ॱˊ(this.ˋॱ);
        request.ᐝॱ(this.ˏॱ);
        wishDetailFragmentProtocol.ˏ(request);
        Fragment fragment = (ContractFragment) cjk.ˎ().ˊ(new cjm("wish.detail.fragment", wishDetailFragmentProtocol));
        FragmentTransaction ˊ = ˏॱ().ˊ();
        ˊ.ˏ(e.ᐧ, fragment);
        ˊ.ˋ();
    }

    public cia ॱ(int i) {
        return (cia) this.ॱˊ.get(Integer.valueOf(i));
    }

    public void ˋ(int i, cia o_cia) {
        dch.ˎ.ˋ("WishDetailActivity", "put cache:" + i);
        this.ॱˊ.put(Integer.valueOf(i), o_cia);
    }

    public Object T_() {
        return this.ॱˊ;
    }
}
